#ifndef _DETECTWAVE_H
#define _DETECTWAVE_H

#include <cv.h>
#include <highgui.h>

#include <vector>
using namespace std;

typedef struct LineSegment{
    int startPos;
    int endPos;
    int nTotal;
}LineSegment;

void DetectWave(CvCapture *pCapture);
void PartitionLine(vector<int> xoffsetVec, vector<LineSegment> &lineVec);
void FindCenter(IplImage *pDiffImg, CvPoint &pPoint);
int FindArea(CvRect *myRect, CvPoint center);
int TrandAnalysis(vector<CvPoint> &PathVec, const int state);
void NextTrandAnalysis(vector<CvPoint> &PathVec);
#endif